<%--
  Created by IntelliJ IDEA.
  User: 钟
  Date: 2017/3/15
  Time: 8:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="${path}/css/public.css" />
    <link rel="stylesheet"
          href="${path}/css/themes/base/jquery.ui.all.css">
    <link rel="stylesheet" href="${path}/js/demos.css">

    <script type="text/javascript"
            src="${path}/js/jquery-1.7.2.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.core.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.widget.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.position.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.autocomplete.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.datepicker.js"></script>
    <script type="text/javascript"
            src="${path}/js/jquery.ui.datepicker-zh-CN.js"></script>
    <script src="${path}/js/jquery.ui.button.js"></script>
    <link rel="stylesheet" href="${path}/css/icons.css">
    <script src="${path}/js/icons.js"></script>


    <title>客户冲突
    </title>
</head>
<body>
<!--头部-->
<div class="header">




    <div class="top">
        <div class="top_left">
            <span class="f1">欢迎您：ADMIN</span>
        </div>
        <div class="top_right">
            <a href="${path}/index.html" class="top_ico0">首页</a>
            <a href="${path}/initUpdatePassword.action" class="top_ico1">修改密码</a>
            <a href="${path}/user/initPersonalInfo.action" class="top_ico2">个人信息</a>
            <a href="${path}/logout.action" class="top_ico3">退出</a>
        </div>
    </div>
    <div class="top2">
        <p class="pro_id">客户关系管理系统 v2.0</p>
    </div>
</div>

<!--主体-->
<table class="main" border="0"
       style="width: 100%; background-color: #FFFFFF">
    <tr>
        <td width="140" style="vertical-align: top;">
            <div class="main_left">



                <script type="text/javascript" src="${path}/js/jquery.ui.accordion.js"></script>

                <script type="text/javascript">
                    $().ready(function() {
                        $('.menuTitle').click(function() {//添加menuTitle的click事件
                            if ($(this).next().is(":hidden")) {//隐藏判断
                                $('.menu_ul_div').slideUp();//隐藏 */
                                $(this).next().slideDown();//显示
                            } else {
                                if ($(this).next().attr("id") == 'menu_ul_div_1') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_2').slideDown();//显示

                                }
                                ;
                                if ($(this).next().attr("id") == 'menu_ul_div_2') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_3').slideDown();//显示

                                }
                                ;
                                if ($(this).next().attr("id") == 'menu_ul_div_3') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_4').slideDown();//显示

                                }
                                if ($(this).next().attr("id") == 'menu_ul_div_4') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_1').slideDown();//显示

                                }
                            }
                        });
                    });
                </script>
                <div class="sidebar">

                    <h2 id="menu1" class="menuTitle">客户管理</h2>
                    <div class="menu_ul_div" id="menu_ul_div_1"
                         style="display:block;"
                    >
                        <ul id="menu1_ul" class="menu_ul">
                            <li class="menuItem"><a href="${path}/customer/initConflict.action">客户冲突</a></li>
                            <li class="menuItem"><a href="${path}/customer/initAdd.action">添加客户</a></li>
                            <li class="menuItem"><a href="${path}/customer/initServe.action">服务中签约客户</a></li>
                            <li class="menuItem"><a href="${path}/customer/initNoServe.action">未签约客户</a></li>
                            <li class="menuItem"><a href="${path}/customer/initNoServeFirst.action">未签约-已初试</a></li>
                            <li class="menuItem"><a href="${path}/customer/initNoServeSecond.action">未签约-已复试</a></li>
                            <li class="menuItem"><a href="${path}/customer/getAllSea.action">公海客户</a></li>
                            <li class="menuItem"><a href="${path}/visitRecord/initSearch.action">拜访查询</a></li>
                        </ul>
                    </div>


                    <h2 id="menu2" class="menuTitle">合同管理</h2>
                    <div class="menu_ul_div" id="menu_ul_div_2"

                         style="display:none;">
                        <ul id="menu2_ul" class="menu_ul">
                            <li class="menuItem"><a href="${path}/contractTemplate/initList.action">合同模版</a></li>
                            <li class="menuItem"><a href="${path}/contract/initAdd.action">新增合同</a></li>
                            <li class="menuItem"><a href="${path}/contract/initContractValid.action">有效合同查询</a></li>
                            <li class="menuItem"><a href="${path}/contract/initContractInvalid.action">无效合同查询</a></li>
                            <li class="menuItem"><a href="${path}/contract/initPaymentReceivable.action">应收款查询</a></li>
                            <li class="menuItem"><a href="${path}/contract/initPaymentReceived.action">到款查询</a></li>
                        </ul>
                    </div>


                    <h2 id="menu3" class="menuTitle">报表管理</h2>
                    <div class="menu_ul_div" id="menu_ul_div_3"

                         style="display:none;">
                        <ul id="menu3_ul" class="menu_ul">
                            <li class="menuItem"><a href="${path}/report/initReport.action">拜访量报表</a></li>
                        </ul>
                    </div>


                    <h2 id="menu4" class="menuTitle">系统设置</h2>
                    <div class="menu_ul_div" id="menu_ul_div_4"

                         style="display:none;">
                        <ul id="menu4_ul" class="menu_ul">
                            <li class="menuItem"><a href="${path}/system/search.action">员工设置</a></li>
                            <li class="menuItem"><a href="${path}/announcement/search.action">公告管理</a></li>
                            <li class="menuItem"><a href="${path}/system/elses.action">其他设置</a></li>
                        </ul>
                    </div>

                </div>
            </div>
        </td>
        <td style="vertical-align: top;">
            <div class="main_right">



                <link rel="stylesheet" href="${path}/css/themes/base/jquery.ui.all.css">
                <script src="${path}/js/jquery.ui.button.js"></script>
                <link rel="stylesheet" href="${path}/css/demos.css">
                <link rel="stylesheet" href="${path}/css/icons.css">

                <script src="${path}/js/icons.js"></script>
                <script type="text/javascript">

                    var cityId = "";


                    function submitForm(){
                        document.getElementById("pageNumber").value = 1;
                        document.myForm.submit();
                    }


                    function loadCity(){
                        var provId = $("#prov").val();
                        //判断是请选择以外....
                        if(provId != null && ""!=provId){
                            $.ajax({
                                //请求路径
                                url:"${path}/customer/ajaxCityFromProv.action",
                                //请求格式
                                dataType:"json",
                                //提交的数据
                                data:{"province.id":provId},
                                //处理错误
                                error:function(){
                                    alert("请求处理失败");
                                },
                                //处理成功
                                success:function(result){
                                    if(result.success){
                                        var citys =result.citys;
                                        $("#city").empty();//清空所有原选项

                                        $("#city").append("<option value='' selected='selected'>==下级市/区==</option>");

                                        $(citys).each(function(){
                                            $("#city").append("<option value='"+this.id+"'>"+this.name+"</option>");
                                        });

                                        //初始化已选城市
                                        if(cityId != ""){
                                            $("#city").val(cityId);
                                        }
                                    }
                                },
                            });
                        }else{
                            $("#city").empty();//清空所有原选项
                            $("#city").append("<option value='' selected='selected'>==下级市/区==</option>");

                        }
                    }

                    $(function(){

                        //初始化城市下拉菜单
                        loadCity();

                        //监听change事件
                        $("#prov").change(function(){
                            loadCity();
                        });

                    });
                </script>

                <div class="main">
                    <div class="content">
                        <div class="pageHead">
                            <table>
                                <tr>
                                    <th width="8"><img src="${path}/images/c_l.gif" height="31" width="8"/></th>
                                    <th align="left" class="title_area">当前位置：客户管理 &gt; 客户冲突</th>
                                    <th width="9"><img src="${path}/images/c_r.gif" height="31" width="9"></th>
                                </tr>
                            </table>
                        </div>
                        <div class="pageBody">
                            <ul class="errorMessage">
                                <li><span>查询条件不能为空!至少一个条件</span></li>	</ul>

                            <form id="conflict" name="myForm" action="${path}/customer/conflict.action" method="post">
                                <input type="hidden" name="pager.pageNumber" value="1" id="pageNumber"/>
                                <table class="mytable fullWidth">
                                    <tr>
                                        <th>客户名称</th>
                                        <td>
                                            <input type="text" name="contact.customer.name" value="" id="conflict_contact_customer_name"/>
                                        </td>
                                        <th>客户地址</th>
                                        <td>
                                            <input type="text" name="contact.customer.address" value="" id="conflict_contact_customer_address"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>固定电话</th>
                                        <td>
                                            <input type="text" name="contact.phone" value="" id="conflict_contact_phone"/>
                                        </td>
                                        <th>手机</th>
                                        <td>
                                            <input type="text" name="contact.mobilePhone" value="" id="conflict_contact_mobilePhone"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>主联系人</th>
                                        <td>
                                            <input type="text" name="contact.name" value="" id="conflict_contact_name"/>
                                        </td>
                                        <th>地区信息</th>
                                        <td>
                                            <select name="province.id" id="prov" style="width:128px">
                                                <option value=""
                                                        selected="selected"
                                                >==选择省/直辖市==</option>
                                                <option value="5ebbac2a-206c-4fa4-b744-470b256c91b2">上海市</option>
                                                <option value="afe15f12-c21a-462e-a711-0e5d058beec1">云南省</option>
                                                <option value="52959d96-60ee-4dcf-88ba-c5542307314d">内蒙古</option>
                                                <option value="52a28789-6099-4622-993d-cc5eca9519e1">北京市</option>
                                                <option value="e5bdc4f5-b5c0-4f1e-8664-52fba0e509e4">吉林省</option>
                                                <option value="2f073c13-0f0b-4b9f-8409-797c4338bdfb">四川省</option>
                                                <option value="2a152d94-e5fc-4171-9ae8-02cdcfaf87cd">天津市</option>
                                                <option value="758c847c-e872-4b54-b527-6faa0920b5a1">宁 夏</option>
                                                <option value="524cc145-82b9-4c7d-9f5c-4692b4ff5048">安徽省</option>
                                                <option value="4aa5ba34-3bd2-4536-8df7-e7a1a44417a7">山东省</option>
                                                <option value="04341f7e-cf0f-4c7d-b897-94d7d9ba6ebf">山西省</option>
                                                <option value="5295fa66-5b6f-4ca6-a7fa-847231ff252a">广 西</option>
                                                <option value="821e734d-c7ca-4d74-910c-dd9c76589867">广东省</option>
                                                <option value="757440e6-a444-40d6-8e80-3dcaf28978fa">新 疆</option>
                                                <option value="15fe5239-cfc5-49a9-85a4-9a9ffddefe1a">江苏省</option>
                                                <option value="267dc537-29ad-4552-9553-f9357a25b795">江西省</option>
                                                <option value="08d3ae0d-8a1d-4d54-89ab-05dc04c5172e">河北省</option>
                                                <option value="b6379b79-9ffb-4a2f-adbd-f48c2b8c8ebd">河南省</option>
                                                <option value="4647ca28-5db7-4501-add9-ee146d8e48d0">浙江省</option>
                                                <option value="ccdc4187-c853-46be-9328-abe9ba2e6136">海南省</option>
                                                <option value="1ffe7bd1-e76e-4f32-93b4-40ac0b56b44e">湖北省</option>
                                                <option value="592e8e73-a536-451d-998d-a27e4cbab850">湖南省</option>
                                                <option value="562b70d3-9b81-47e2-903f-b668c9082cbc">甘肃省</option>
                                                <option value="e2362180-4361-491b-bef9-4ef2826bf42a">福建省</option>
                                                <option value="273b6781-0ea2-4121-b158-ca3da4141350">西 藏</option>
                                                <option value="8d023a2c-ef9c-4de3-8604-5e6c1c2642c2">贵州省</option>
                                                <option value="1b397723-7535-4bee-afeb-5aeefbe595ef">辽宁省</option>
                                                <option value="6c6bed3b-dad7-48d4-ac59-dc2695c68a83">重庆市</option>
                                                <option value="63063a04-8888-4d88-ac99-80dcee65cd3e">陕西省</option>
                                                <option value="03cd2d06-fb50-40c9-9949-1c3452978b48">青海省</option>
                                                <option value="d529bb1a-d70a-44db-a3ce-b604d38c9413">黑龙江</option>


                                            </select>

                                            <select id="city" name="city.id"  style="width:128px">
                                                <option value="" selected="selected">==下级市/区==</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <div class="buttonBar">
                                                <button id="btnSearch" type="button" onclick="submitForm()">查询</button>
                                                <button id="btnReset" type="reset">重置</button>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </form>





                            <div style="height: 10px"></div>


                            <table class="mytable resultTable fullWidth">
                                <tr>
                                    <th style="width:30px">序号</th>
                                    <th style="width:70px">创建时间</th>
                                    <th>客户名称</th>
                                    <th style="width:70px">主联系人</th>
                                    <th>客户地址</th>
                                    <th style="width:70px">客户专员</th>
                                    <th style="width:100px">操作</th>
                                </tr>


                                <tr>
                                    <td style="width:30px">1</th>
                                    <td style="width:70px">2014-12-30</th>
                                    <td><a href='../客户管理/客户信息.html'>张三</a>云南省 大理白族自治州 </th>
                                    <td style="width:70px">XXXX</th>
                                    <td>XXXXX</th>
                                    <td style="width:70px">XXXX客户专员</th>
                                    <td style="width:100px"><a href="${path}/客户管理/拜访记录.html">拜访记录</a>
                                        <a href="../客户管理/联系人列表.html">联系人</a></th>
                                </tr>

                            </table>
                            <div class="pager-container">



                                <script type="text/javascript">
                                    function pager(num){
//        alert("num:"+num);
                                        document.getElementById("pageNumber").value = num;
                                        document.myForm.submit();
                                    }
                                </script>

                                <ul class="pager">
                                    <li class="pageInfo">共0条记录,<li class="pageInfo">共0页，当前为第1页</li>
                                    <!--首页-->


                                    <li class="firstPage">
                                        <span>首页</span>
                                    </li>

                                    <!--上一页-->


                                    <li class="prePage">
                                        <span>上一页</span>
                                    </li>

                                    <!--下一页-->


                                    <li class="nextPage">
                                        <span>下一页</span>
                                    </li>

                                    <!--末页-->


                                    <li class="lastPage">
                                        <span>末页</span>
                                    </li>

                                </ul>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</table>

<!--尾部-->
<div class="footer">


    <div class="seperator"></div>
    <p>
        <a href="http://www.sztzedu.com">公司主站</a>|
        <a href="#">隐私策略</a>|
        <a href="#">服务条款</a>&nbsp;
        苏州天智教育公司&reg;版权所有 2012-2015
    </p>

</div>
</body>
</html>

